package com.example.vspm.util;

import org.springframework.stereotype.Service;

/**
 * @author LCL
 * @date 2022/3/10
 * @desc
 */
@Service
public class StateUtil {

    public String taskFormStateSwitch(String num){
        String mv="";
        switch (num){
            case "1":
                mv="草稿";
                break;
            case "2":
                mv="待派单";
                break;
            case "3":
                mv="待接单";
                break;
            case "4":
                mv="进行中";
                break;
            case "5":
                mv="已暂停";
                break;
            case "6":
                mv="待评价";
                break;
            case "7":
                mv="已完成";
                break;
            default:
                mv ="乱了乱了";
                break;
        }
        return mv;
    }
    public String meetingPlaceCategorySwitch(String num){
        String uu="";
        switch (num){
            case "1":
                uu="接受";
                break;
            case "2":
                uu="拒绝";
                break;
            default:
                uu ="乱了乱了";
                break;
        }
        return uu;
    }
    public String sendTableStatusSwitch(String num){
        String cp="";
        switch (num){
            case "1":
                cp="接受";
                break;
            case "2":
                cp="拒绝";
                break;
            case "3":
                cp="失信";
                break;
            case "4":
                cp="调整";
                break;
            default:
                cp ="乱了乱了";
                break;
        }
        return cp;
    }
}
